//
//  HWMyjiaoYiViewController.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/23.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWMyjiaoYiViewController.h"
#import "HWJiaoYiShouCangTableViewCell.h" // 我的游戏

@interface HWMyjiaoYiViewController ()<UITableViewDataSource,UITableViewDelegate>
@property(strong,nonatomic)UITableView *mainaTableVie;
@end

@implementation HWMyjiaoYiViewController

-(UITableView *)mainaTableVie {

    if  (_mainaTableVie == nil) {

        _mainaTableVie = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, kScreenW, kScreenH-NavBarHeight - 127) style:UITableViewStylePlain];
        _mainaTableVie.delegate = self;
        _mainaTableVie.dataSource = self;
        _mainaTableVie.separatorStyle = UITableViewCellSeparatorStyleNone;
        
        _mainaTableVie.backgroundColor = [UIColor whiteColor];
       // _mainaTableVie.backgroundColor = RGB(241, 242, 244);
        
    }
    return   _mainaTableVie ;

}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self addControlsView];
}


// 添加控件
-(void)addControlsView {
    
    
    self.view.backgroundColor = [UIColor orangeColor];
    self.navigationItem.title = @"我的收藏";
    
    [self.view addSubview:self.mainaTableVie];
    
    
}



#pragma mark ------------  UITableViewDataSource


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    
    
    return 0;
    
    
}



- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    static NSString *cellID = @"cellID";
     HWJiaoYiShouCangTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (!cell) {
        cell = [[NSBundle mainBundle]loadNibNamed:@"HWJiaoYiShouCangTableViewCell" owner:nil options:nil].firstObject;
        
    }
   // cell.textLabel.text = @"icdihohio'o";
    
    cell.selectionStyle =  UITableViewCellSelectionStyleNone;
    cell.backgroundColor = [UIColor whiteColor];
    
    
    return  cell;
    
}


- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    
   
    
    return  86;
    
}


@end
